<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<div class="aui-header-1 aui-gutter-column-md">
    <h2>{{'common_basic_info_label' | i18n}}</h2>
</div>
<lv-group [lvColumns]='["100px", "auto"]' class="aui-gutter-column-xl">
    <div>
        <i *ngIf="rowItem?.linkStatus === dataMap.resource_LinkStatus_Special.normal.value"
            lv-icon='aui-sla-cloud-host-online' class="base-info-icon"></i>
        <i *ngIf="rowItem?.linkStatus !== dataMap.resource_LinkStatus_Special.normal.value"
            lv-icon='aui-sla-cloud-host-offline' class="base-info-icon"></i>
    </div>
    <lv-form [lvLabelColon]='false'>
        <lv-form-column lvWidth="25%">
            <lv-form-item>
                <lv-form-label>{{'common_name_label' | i18n}}</lv-form-label>
                <lv-form-control>
                    <span lv-overflow class="warp-name">{{rowItem?.name | nil}}</span>
                </lv-form-control>
            </lv-form-item>
        </lv-form-column>
        <lv-form-column lvWidth="40%">
            <lv-form-item>
                <lv-form-label lv-overflow>{{'protection_organization_id_label' | i18n}}</lv-form-label>
                <lv-form-control>
                    <span class="warp-name" lv-overflow>{{rowItem?.extendInfo.organizationId | nil}}</span>
                </lv-form-control>
            </lv-form-item>
        </lv-form-column>
        <lv-form-column lvWidth="25%">
            <lv-form-item>
                <lv-form-label lv-overflow>{{'protection_region_id_label' | i18n}}</lv-form-label>
                <lv-form-control>
                    <span class="warp-name" lv-overflow>{{rowItem?.extendInfo.regionId | nil}}</span>
                </lv-form-control>
            </lv-form-item>
        </lv-form-column>
    </lv-form>
</lv-group>

<div class="aui-header-2 aui-gutter-column-md">
    <h2>{{'protection_proxy_host_label' | i18n}}</h2>
</div>
<lv-pro-table #dataTable [config]="tableConfig" [data]="tableData"></lv-pro-table>